package com.example.lsrsbackend.service;

import com.example.lsrsbackend.model.Seat;
import com.example.lsrsbackend.model.view.SeatVO;

import java.util.List;


//座位服务接口
public interface SeatService {
    //TODO 获取座位状态
    List<Seat> getAllSeatStatus();

    //TODO 根据区域获取座位
    List<Seat> getSeatsByArea(String area);

    //TODO 初始化座位数据
    void initSeatData();

    //TODO 同步座位状态到Redis
    void syncSeatStatusToRedis();

    //TODO 获取座位详情
    SeatVO getSeatDetail(String seatId);

    void updateSeatStatus(String seatId, String status, String currentUser, String reservationId);

    //座位新增
    Seat addSeat(Seat seat);

    //座位更新
    Seat updateSeat(Long id, Seat seat);

    void deleteSeat(Long id);
}
